#ifndef MOTORWIDGET_H
#define MOTORWIDGET_H

#include <QWidget>

namespace Ui {
class motorWidget;
}

class motorWidget : public QWidget
{
    Q_OBJECT

public:
    explicit motorWidget(QWidget *parent = nullptr);
    ~motorWidget();



    void Send_I_Iq();
    void Send_Iq_PID();
    void Send_Id_PID();

    void Send_Aim_Speed();
    void Send_Speed_PID();


    void SendCMD(uint8_t func1,uint8_t func2,uint8_t func3,float data1,float data2,float data3);

    void readResponse(QByteArray , QString hex_string);
signals:
    void sendData(char *data,int len);
private:
    Ui::motorWidget *ui;
};

#endif // MOTORWIDGET_H
